namespace DBZ_CONST_CALL {
	namespace bad {
		int compute_mean(int array[], size_t size)
		{
			int sum = 0;
			for (size_t i = 0; i < size; ++i) {
				sum += array[i];
			}
			return sum / size;
		}

		void use_mean()
		{
			int mean = compute_mean(0, 0);
		}
	}

	namespace good {

		int compute_mean(int array[], size_t size)
		{
			if (size == 0) {
				return 0;
			}

			int sum = 0;
			for (size_t i = 0; i < size; ++i) {
				sum += array[i];
			}
			return sum / size;
		}

		void use_mean()
		{
			int mean = compute_mean(0, 0);
		}
	}
}